
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Sisfo Pendaftaran</title>
        <style type="text/css">
            body {font-family: arial;  margin: 25px 30px; }
            td, th {padding: 3px 20px 3px 0px; vertical-align:top; text-align: left; font-size:11pt;}
            h1 {margin-bottom: 4px;}
            #tgl {margin-bottom: 25px;}

        </style>
    </head>

    <body>
        <h1>Rekap Presensi | <?php echo $kode.'-'.$angkatan?></h1>
        <div id="tgl"><?php echo $this->date_func->date_konversion_format4(date('Y-m-d'))?> | <?php echo date('H.i')?> WIB</div>
        <div>
            <table width="850" border="0" cellpadding="0" cellspacing="0" >
                <tr>
                    <td colspan="7"><table border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <th> Peserta</th>
                                <th>Total Jam</th>
                                <th>Jumlah Sesi</th>
                                <th>Kehadiran rata-rata </th>
                                <th>Jumlah Sertifikat Keluar</th>
                            </tr>
                            <tr>
                                <td><?php echo $jum_pendaftar?> Orang</td>
                                <td><?php echo $jam_total?> Jam</td>
                                <td><?php echo $jum_sesi?> Sesi</td>
                                <td><?php echo number_format($persen_hadir,1)?>%</td>
                                <td><?php echo $num_valid?> Sertifikat</td>
                            </tr>
                        </table></td>
                </tr>
                <tr>
                    <td colspan="7">&nbsp;</td>
                </tr>
                <tr>
                    <th>No</th>
                    <th>Nama Peserta</th>
                    <th>ComLabs ID</th>
                    <th>Certificate ID</th>
                    <th>Kehadiran</th>
                    <th> Absen</th>
                    <th>Status</th>
                </tr>
                <?php for($i=0;$i<count($pendaftar);$i++){?>
                <tr>
                    <td><?php echo ($i + 1) ?></td>
                    <td><?php echo $pendaftar[$i]['NAMA'] ?> (<?php echo $pendaftar[$i]['GOL'] ?>)</td>
                    <td><?php echo $pendaftar[$i]['no_kartu'] ?></td>
                    <td><?php echo $pendaftar[$i]['no_sert'] ?></td>
                    <td><?php echo number_format($pendaftar[$i]['attendance'],2) ?>%</td>
                    <td><?php echo $pendaftar[$i]['absen'] ?></td>
                    <td><?php echo $pendaftar[$i]['sertifikat'] ?></td>
                </tr>
                <?php } ?>
            </table>
        </div>
    </body>
</html>
